/*    */ package org.wltea.analyzer.lucene;
/*    */ 
/*    */ import org.apache.lucene.analysis.Analyzer;
/*    */ import org.apache.lucene.analysis.Analyzer.TokenStreamComponents;
/*    */ import org.apache.lucene.analysis.Tokenizer;
/*    */ 
/*    */ public final class IKAnalyzer extends Analyzer
/*    */ {
/*    */   private boolean useSmart;
/*    */ 
/*    */   public boolean useSmart()
/*    */   {
/* 39 */     return this.useSmart;
/*    */   }
/*    */ 
/*    */   public void setUseSmart(boolean useSmart) {
/* 43 */     this.useSmart = useSmart;
/*    */   }
/*    */ 
/*    */   public IKAnalyzer()
/*    */   {
/* 52 */     this(false);
/*    */   }
/*    */ 
/*    */   public IKAnalyzer(boolean useSmart)
/*    */   {
/* 62 */     this.useSmart = useSmart;
/*    */   }
/*    */ 
/*    */   protected Analyzer.TokenStreamComponents createComponents(String fieldName)
/*    */   {
/* 70 */     Tokenizer _IKTokenizer = new IKTokenizer(useSmart());
/* 71 */     return new Analyzer.TokenStreamComponents(_IKTokenizer);
/*    */   }
/*    */ }

/* Location:           D:\tools\IKAnalyzer2012_V5.jar
 * Qualified Name:     org.wltea.analyzer.lucene.IKAnalyzer
 * JD-Core Version:    0.6.0
 */